package com.bw.module_attendance.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.BaseResponse
import com.bw.module_attendance.entity.AttendanceEntity
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
/**
 * 工单-智慧园区-考勤管理
 */
interface AttendanceApiService :BaseApiServer{
    @GET("/api/attendances/user/{userId}")
    suspend fun getAttendance(@Path("userId")userId:Int): BaseResponse<List<AttendanceEntity>>

    @POST("/api/attendances")
    suspend fun addAttendance(@Body attendanceEntity: AttendanceEntity): BaseResponse<AttendanceEntity>
}